package com.parttime.dao;

import com.parttime.beans.Merchant_Users;
import com.parttime.beans.Personal_Users;

public interface PersonalUsersDao {
//用户注册
	boolean register(Personal_Users user);
//判断用户表中是否存在某一用户
	boolean exitsUser(Personal_Users user);
	//根据账号判断用户是否存在
	boolean exitsUserByAccount(String loginname);
	//判断用户的密码是否正确
	boolean authPasswordByAccount(String loginpassword, String loginname);
	//根据电话号码获取用户邮箱
	String getEmailByPhone(String phone);
	//根据电话号码获得唯一用户
	Personal_Users getUserByPhone(String phone);
	//保存用户
	boolean saveUser(Personal_Users user);
	

}
